<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesyslog4cj.html">syslog4cj</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl.html">impl</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message.html">message</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message_1_1modifier.html">modifier</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac.html">mac</a></li><li class="navelem"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html">MacSyslogMessageModifierConfig</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.png" usemap="#syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig_map" alt=""/>
  <map id="syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig_map" name="syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig_map">
<area href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html" alt="syslog4cj.impl.message.modifier.AbstractSyslogMessageModifierConfig" shape="rect" coords="0,56,422,80"/>
<area href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html" alt="syslog4cj.common.SyslogMessageModifierConfigIF" shape="rect" coords="0,0,422,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3547624e60be0e3ae94013232794694a"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a3547624e60be0e3ae94013232794694a">init</a> (HashType algorithm, Array&lt; UInt8 &gt; keyBytes)</td></tr>
<tr class="separator:a3547624e60be0e3ae94013232794694a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a352abaf3f4e19a25f32f9d8adaabbd3f"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a352abaf3f4e19a25f32f9d8adaabbd3f">init</a> (HashType algorithm, String base64Key)</td></tr>
<tr class="separator:a352abaf3f4e19a25f32f9d8adaabbd3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f2859235733f0823e205f0c30a71428"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a8f2859235733f0823e205f0c30a71428">createHmacSHA1</a> (Array&lt; UInt8 &gt; key)</td></tr>
<tr class="separator:a8f2859235733f0823e205f0c30a71428"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9b1d3f99f1714eec86d25ad654b1a1f"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#aa9b1d3f99f1714eec86d25ad654b1a1f">createHmacSHA1</a> (String base64Key)</td></tr>
<tr class="separator:aa9b1d3f99f1714eec86d25ad654b1a1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9633c88ab4ae5f1441c4e5ca6eaf0bf2"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a9633c88ab4ae5f1441c4e5ca6eaf0bf2">createHmacSHA256</a> (Array&lt; UInt8 &gt; key)</td></tr>
<tr class="separator:a9633c88ab4ae5f1441c4e5ca6eaf0bf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e0824f2b53235df32f8fcfbb0f08702"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a3e0824f2b53235df32f8fcfbb0f08702">createHmacSHA256</a> (String base64Key)</td></tr>
<tr class="separator:a3e0824f2b53235df32f8fcfbb0f08702"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5277e705696798522a13dc1f8708d06d"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a5277e705696798522a13dc1f8708d06d">createHmacSHA512</a> (Array&lt; UInt8 &gt; key)</td></tr>
<tr class="separator:a5277e705696798522a13dc1f8708d06d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0f2b2071343ffe3ecd436feaec23068"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#ab0f2b2071343ffe3ecd436feaec23068">createHmacSHA512</a> (String base64Key)</td></tr>
<tr class="separator:ab0f2b2071343ffe3ecd436feaec23068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e2ac6ee5591aa17468bd27cfcb1c7b2"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a7e2ac6ee5591aa17468bd27cfcb1c7b2">createHmacMD5</a> (Array&lt; UInt8 &gt; key)</td></tr>
<tr class="separator:a7e2ac6ee5591aa17468bd27cfcb1c7b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38967d3b99ef7a0dc6aed1e9ecbfa8b8"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a38967d3b99ef7a0dc6aed1e9ecbfa8b8">createHmacMD5</a> (String base64Key)</td></tr>
<tr class="separator:a38967d3b99ef7a0dc6aed1e9ecbfa8b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91230004c046318934a34c00b1eccd7"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#aa91230004c046318934a34c00b1eccd7">getAlgorithm</a> ()</td></tr>
<tr class="separator:aa91230004c046318934a34c00b1eccd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c984ccc5d4493a10e09af7e5dc3820d"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a4c984ccc5d4493a10e09af7e5dc3820d">getKey</a> ()</td></tr>
<tr class="separator:a4c984ccc5d4493a10e09af7e5dc3820d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a888deeb6fe894495df33848aee345f2b"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#a888deeb6fe894495df33848aee345f2b">setKey</a> (Array&lt; UInt8 &gt; key)</td></tr>
<tr class="separator:a888deeb6fe894495df33848aee345f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html">syslog4cj.impl.message.modifier.AbstractSyslogMessageModifierConfig</a></td></tr>
<tr class="memitem:a76fe9193a93d2d4622c51dd474979fd9 inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html#a76fe9193a93d2d4622c51dd474979fd9">getPrefix</a> ()</td></tr>
<tr class="separator:a76fe9193a93d2d4622c51dd474979fd9 inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac13609679ec2d5852f1c9ddcaf1c58d4 inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html#ac13609679ec2d5852f1c9ddcaf1c58d4">getSuffix</a> ()</td></tr>
<tr class="separator:ac13609679ec2d5852f1c9ddcaf1c58d4 inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13bbeb8ec67a0b2c229d1cf168a70e5f inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html#a13bbeb8ec67a0b2c229d1cf168a70e5f">setPrefix</a> (String prefix)</td></tr>
<tr class="separator:a13bbeb8ec67a0b2c229d1cf168a70e5f inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d5f2a52405c164719809b253eddeaa inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html#a53d5f2a52405c164719809b253eddeaa">setSuffix</a> (String suffix)</td></tr>
<tr class="separator:a53d5f2a52405c164719809b253eddeaa inherit pub_methods_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e5ca1c9226024f6d7b168964913af50"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html#a5e5ca1c9226024f6d7b168964913af50">getPrefix</a> ():String</td></tr>
<tr class="separator:a5e5ca1c9226024f6d7b168964913af50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeff1c36fde9a1b23b6503b7e076a0a8b"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html#aeff1c36fde9a1b23b6503b7e076a0a8b">setPrefix</a> (String prefix):Unit</td></tr>
<tr class="separator:aeff1c36fde9a1b23b6503b7e076a0a8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af55ba318871d9f525814dbf1d3bf95fc"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html#af55ba318871d9f525814dbf1d3bf95fc">getSuffix</a> ():String</td></tr>
<tr class="separator:af55ba318871d9f525814dbf1d3bf95fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a639ed3bff025522ef24971376cbd22c3"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html#a639ed3bff025522ef24971376cbd22c3">setSuffix</a> (String suffix):Unit</td></tr>
<tr class="separator:a639ed3bff025522ef24971376cbd22c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:acf29b3f8e4b480475e55f329262317c2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#acf29b3f8e4b480475e55f329262317c2">var algorithm</a> : HashType</td></tr>
<tr class="separator:acf29b3f8e4b480475e55f329262317c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf8083475191ff67e603550ad3279601"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifierConfig.html#acf8083475191ff67e603550ad3279601">var key</a> : Array&lt;UInt8&gt;</td></tr>
<tr class="separator:acf8083475191ff67e603550ad3279601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html">syslog4cj.impl.message.modifier.AbstractSyslogMessageModifierConfig</a></td></tr>
<tr class="memitem:a2e67b0fce4f138ca15c4c2f7d2e1a8e4 inherit pro_attribs_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html#a2e67b0fce4f138ca15c4c2f7d2e1a8e4">var prefix</a> = SYSLOG_MESSAGE_MODIFIER_PREFIX_DEFAULT</td></tr>
<tr class="separator:a2e67b0fce4f138ca15c4c2f7d2e1a8e4 inherit pro_attribs_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a208752c590f5ca3360efbb9be54524e4 inherit pro_attribs_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig.html#a208752c590f5ca3360efbb9be54524e4">var suffix</a> = SYSLOG_MESSAGE_MODIFIER_SUFFIX_DEFAULT</td></tr>
<tr class="separator:a208752c590f5ca3360efbb9be54524e4 inherit pro_attribs_classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifierConfig"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>MAC（消息认证码）日志消息修饰器的配置类<br  />
 用于配置 MacSyslogMessageModifier 所需的算法和密钥， 支持通过原始字节或Base64字符串设置密钥。 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3547624e60be0e3ae94013232794694a" name="a3547624e60be0e3ae94013232794694a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3547624e60be0e3ae94013232794694a">&#9670;&#160;</a></span>init() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.init </td>
          <td>(</td>
          <td class="paramname"><em>algorithm</em>:&#160;</td>
          <td class="paramtype">HashType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>keyBytes</em>:&#160;</td>
          <td class="paramtype">Array&lt;UInt8&gt;&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>使用算法类型和原始密钥字节创建配置</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">algorithm</td><td>MAC算法类型 </td></tr>
    <tr><td class="paramname">keyBytes</td><td>原始密钥字节数组 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a352abaf3f4e19a25f32f9d8adaabbd3f" name="a352abaf3f4e19a25f32f9d8adaabbd3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a352abaf3f4e19a25f32f9d8adaabbd3f">&#9670;&#160;</a></span>init() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.init </td>
          <td>(</td>
          <td class="paramname"><em>algorithm</em>:&#160;</td>
          <td class="paramtype">HashType, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>base64Key</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>使用算法类型和Base64编码密钥创建配置</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">algorithm</td><td>MAC算法类型 </td></tr>
    <tr><td class="paramname">base64Key</td><td>Base64编码的密钥字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">SyslogRuntimeException</td><td>当Base64解码失败时抛出 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7e2ac6ee5591aa17468bd27cfcb1c7b2" name="a7e2ac6ee5591aa17468bd27cfcb1c7b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e2ac6ee5591aa17468bd27cfcb1c7b2">&#9670;&#160;</a></span>createHmacMD5() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacMD5 </td>
          <td>(</td>
          <td class="paramname"><em>key</em>:&#160;</td>
          <td class="paramtype">Array&lt;UInt8&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-MD5配置（原始密钥字节）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>原始密钥字节数组 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a38967d3b99ef7a0dc6aed1e9ecbfa8b8" name="a38967d3b99ef7a0dc6aed1e9ecbfa8b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38967d3b99ef7a0dc6aed1e9ecbfa8b8">&#9670;&#160;</a></span>createHmacMD5() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacMD5 </td>
          <td>(</td>
          <td class="paramname"><em>base64Key</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-MD5配置（Base64密钥）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base64Key</td><td>Base64编码的密钥字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8f2859235733f0823e205f0c30a71428" name="a8f2859235733f0823e205f0c30a71428"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f2859235733f0823e205f0c30a71428">&#9670;&#160;</a></span>createHmacSHA1() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacSHA1 </td>
          <td>(</td>
          <td class="paramname"><em>key</em>:&#160;</td>
          <td class="paramtype">Array&lt;UInt8&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-SHA1配置（原始密钥字节）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>原始密钥字节数组 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa9b1d3f99f1714eec86d25ad654b1a1f" name="aa9b1d3f99f1714eec86d25ad654b1a1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9b1d3f99f1714eec86d25ad654b1a1f">&#9670;&#160;</a></span>createHmacSHA1() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacSHA1 </td>
          <td>(</td>
          <td class="paramname"><em>base64Key</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-SHA1配置（Base64密钥）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base64Key</td><td>Base64编码的密钥字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9633c88ab4ae5f1441c4e5ca6eaf0bf2" name="a9633c88ab4ae5f1441c4e5ca6eaf0bf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9633c88ab4ae5f1441c4e5ca6eaf0bf2">&#9670;&#160;</a></span>createHmacSHA256() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacSHA256 </td>
          <td>(</td>
          <td class="paramname"><em>key</em>:&#160;</td>
          <td class="paramtype">Array&lt;UInt8&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-SHA256配置（原始密钥字节）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>原始密钥字节数组 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3e0824f2b53235df32f8fcfbb0f08702" name="a3e0824f2b53235df32f8fcfbb0f08702"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e0824f2b53235df32f8fcfbb0f08702">&#9670;&#160;</a></span>createHmacSHA256() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacSHA256 </td>
          <td>(</td>
          <td class="paramname"><em>base64Key</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-SHA256配置（Base64密钥）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base64Key</td><td>Base64编码的密钥字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5277e705696798522a13dc1f8708d06d" name="a5277e705696798522a13dc1f8708d06d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5277e705696798522a13dc1f8708d06d">&#9670;&#160;</a></span>createHmacSHA512() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacSHA512 </td>
          <td>(</td>
          <td class="paramname"><em>key</em>:&#160;</td>
          <td class="paramtype">Array&lt;UInt8&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-SHA512配置（原始密钥字节）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>原始密钥字节数组 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab0f2b2071343ffe3ecd436feaec23068" name="ab0f2b2071343ffe3ecd436feaec23068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0f2b2071343ffe3ecd436feaec23068">&#9670;&#160;</a></span>createHmacSHA512() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.createHmacSHA512 </td>
          <td>(</td>
          <td class="paramname"><em>base64Key</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建HMAC-SHA512配置（Base64密钥）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base64Key</td><td>Base64编码的密钥字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa91230004c046318934a34c00b1eccd7" name="aa91230004c046318934a34c00b1eccd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa91230004c046318934a34c00b1eccd7">&#9670;&#160;</a></span>getAlgorithm()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.getAlgorithm </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取当前配置的MAC算法类型</p>
<dl class="section return"><dt>Returns</dt><dd>MAC算法类型 </dd></dl>

</div>
</div>
<a id="a4c984ccc5d4493a10e09af7e5dc3820d" name="a4c984ccc5d4493a10e09af7e5dc3820d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c984ccc5d4493a10e09af7e5dc3820d">&#9670;&#160;</a></span>getKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.getKey </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取当前配置的密钥字节数组</p>
<dl class="section return"><dt>Returns</dt><dd>密钥字节数组 </dd></dl>

</div>
</div>
<a id="a888deeb6fe894495df33848aee345f2b" name="a888deeb6fe894495df33848aee345f2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a888deeb6fe894495df33848aee345f2b">&#9670;&#160;</a></span>setKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.setKey </td>
          <td>(</td>
          <td class="paramname"><em>key</em>:&#160;</td>
          <td class="paramtype">Array&lt;UInt8&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置新的密钥字节数组</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>新的密钥字节数组 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="acf29b3f8e4b480475e55f329262317c2" name="acf29b3f8e4b480475e55f329262317c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf29b3f8e4b480475e55f329262317c2">&#9670;&#160;</a></span>var algorithm</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.var algorithm : HashType</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>MAC算法类型（如HMAC-SHA256） </p>

</div>
</div>
<a id="acf8083475191ff67e603550ad3279601" name="acf8083475191ff67e603550ad3279601"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf8083475191ff67e603550ad3279601">&#9670;&#160;</a></span>var key</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifierConfig.var key : Array&lt;UInt8&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>MAC计算使用的密钥字节数组 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/impl/message/modifier/mac/<a class="el" href="mac__syslog__message__modifier__config_8cj.html">mac_syslog_message_modifier_config.cj</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
